﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Afterburner : MonoBehaviour {

	public  TrailRenderer trail;

	void Awake()
	{
		trail = this.GetComponent<TrailRenderer> ();
	}
	// Use this for initialization
	void Start () {
		trail.startWidth = 0.2f;
		trail.endWidth = 0.1f;
		trail.time = 0.4f;
	}

	public void Play()
	{
		trail.enabled = true;
	}

	public void Stop()
	{
		trail.enabled = false;
	}

}
